import request from '@/utils/request'

// 查询进销存_订单入库明细列表
export function listDdrkmx(query) {
  return request({
    url: '/system/ddrkmx/list',
    method: 'get',
    params: query
  })
}

// 查询进销存_订单入库明细详细
export function getDdrkmx(ddrkmxid) {
  return request({
    url: '/system/ddrkmx/' + ddrkmxid,
    method: 'get'
  })
}

// 新增进销存_订单入库明细
export function addDdrkmx(data) {
  return request({
    url: '/system/ddrkmx',
    method: 'post',
    data: data
  })
}

// 修改进销存_订单入库明细
export function updateDdrkmx(data) {
  return request({
    url: '/system/ddrkmx',
    method: 'put',
    data: data
  })
}

// 删除进销存_订单入库明细
export function delDdrkmx(ddrkmxid) {
  return request({
    url: '/system/ddrkmx/' + ddrkmxid,
    method: 'delete'
  })
}
